import component from "element-plus/es/components/tree-select/src/tree-select-option.mjs";


export const constantRoute = [
  {
    path: "/login",
    component: () => import("@/view/login/index.vue"),
    name: "login",
    meta: {
      title: "登录",
      hidden: true,
    },
  },
  {
    path: "/",
    component: () => import("@/layout/index.vue"),
    name: "layout",
    meta: {
      title: "",
      hidden: true,
      icon: "",
    },
    redirect: "/home",
    children: [
      {
        path: "/home",
        component: () => import("@/view/home/index.vue"),
        name: "home",
        meta: {
          title: "首页",
          hidden: false,
          icon: "HomeFilled",
        },
      },
    ],
  },
  {
    path: "/404",
    component: () => import("@/view/404/index.vue"),
    name: "404",
    meta: {
      title: "404",
      hidden: true,
      icon: "DocumentDelete",
    },
  },

  {
    path: "/",
    component: () => import("@/layout/index.vue"),
    name: "",
    meta: {
      hidden: false,
      title: "",
      icon: "",
    },
    children: [
      {
        path: "/task/index",
        name: "task",
        component: () => import("@/view/tasks/index.vue"),
        meta: {
          hidden: false,
          title: "事务管理",
          icon: "Platform",
        },
      },
    ],
  },
  {
    path: "/",
    component: () => import("@/layout/index.vue"),
    name: "",
    meta: {
      title: "",
      hidden: false,
      icon: "",
    },
    children: [
      {
        path: "/journal",
        name: "journal",
        component: () => import("@/view/journals/index.vue"),
        meta: {
          hidden: false,
          title: "日记",
          icon: "Memo",
        },
      },
    ],
  },
  {
    path: "/",
    component: () => import("@/layout/index.vue"),
    name: "",
    meta: {
      title: "",
      icon: "",
    }, children: [
      {
        path: "/file",
        name: "file",
        component: () => import("@/view/file/index.vue"),
        meta: {
          hidden: false,
          title: "文件管理",
          icon: "Files",
        },
      },
    ],
  },
  {
    path: "/",
    component: () => import("@/layout/index.vue"),
    name: "",
    meta: {
      title: "",
      icon: "",
    }, children: [
      {
        path: "/ai-aissistant",
        name: "ai-aissistant",
        component: () => import("@/view/ai-aissistant/index.vue"),
        meta: {
          hidden: false,
          title: "ai助手",
          icon: "Service",
        },
      },
    ],
  },
  {
    path: "/",
    component: () => import("@/layout/index.vue"),
    name: "",
    meta: {
      title: "",
      icon: "",
    },
    children: [
      {
        path: "/product",
        name: "Product",
        component: () => import("@/view/notes/index.vue"),
        meta: {
          hidden: false,
          title: "笔记",
          icon: "Notebook",
        },
      },
    ],
  },
  {
    path: "/:pathMathch(.*)*",
    redirect: "/404",
    name: "Any",
    meta: {
      title: "任意路由",
      hidden: true,
      icon: "DataLine",
    },
  },
];
